package cn.edu.lit.jsjxy.CourseExample.chapter3;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import cn.edu.lit.jsjxy.CourseExample.R;

public class ImplicitTestActivity extends Activity implements View.OnClickListener
{
    Button btnLaunch;

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_implicit_test);

        btnLaunch = findViewById(R.id.btnLaunch);
        btnLaunch.setOnClickListener(this);

    }

    @Override
    public void onClick(View view)
    {
        Uri uri = Uri.parse("https://www.baidu.com");

        Intent intent = new Intent();
        intent.setAction(Intent.ACTION_DIAL);

        //intent.setData(uri);

        startActivity(intent);
    }
}
